<!DOCTYPE HTML>
<html>
<head>
	<title> 我的管理后台</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="static/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
	<link href="static/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
	<link href="static/assets/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="header">
	<div class="dl-title"><span class="">我的管理后台</span></div>
	<div class="dl-log">欢迎您，<span class="dl-log-user">XXX</span>
		<a href="logout" title="退出系统" class="dl-log-quit">[退出]</a>
	</div>
</div>
<div class="content">
	<div class="dl-main-nav">
		<ul id="J_Nav"  class="nav-list ks-clear">
		</ul>
	</div>
	<ul id="J_NavContent" class="dl-tab-conten">

	</ul>

</div>
<script type="text/javascript" src="static/assets/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="static/assets/js/bui-min.js"></script>
<script type="text/javascript" src="static/assets/js/config-min.js"></script>
<script>
    BUI.use('common/main',function(){
        $.ajax({
            url: "/menu/userMenuList",
            type: 'GET',
            dataType: 'json',
            timeout: 10000,
            error: function () {
                alert('获取权限列表失败！');
            },
            success: function (result) {
                var menuContent='';
                $.each(result,function(idx,item) {
                    menuContent = menuContent
						+ '<li class="nav-item '+(idx==0?'dl-selected':'')+'"><div class="nav-item-inner '+(idx!=0?'nav-inventory':'nav-storage')+'">'
						+item.text
						+'</div></li>';
                });
                $("#J_Nav").html(menuContent);

                var config = result;
                new PageUtil.MainPage({
                    modulesConfig : config
                });
            }
        });

        //首页内容请求

		$(".dl-log-user").html("admin");
    });

</script>
</body>
</html>